package com.woniuxy.api;

import com.woniu.cloud.common.dto.Result;
import com.woniuxy.form.GetOrder;
import com.woniuxy.form.InsertStorePurchaseDetailOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "kaer-order",contextId = "StorePurchaseDetailOrderApi")
public interface StorePurchaseDetailOrderApi {
    /**
     *
     * @param insertStorePurchaseDetailOrder
     * @return
     * 增加店铺进货订单详情
     */
    @PutMapping("/insertStorePurchaseDetailOrder")
    Result insertStorePurchaseDetailOrder(@RequestBody InsertStorePurchaseDetailOrder insertStorePurchaseDetailOrder);

    /**
     *
     * @param orderId
     * @return
     * 平台分页查看 店铺进货详情表
     */
    @GetMapping("/getStorePurchaseDetailOrderByStorePurchaseOrderId")
    Result getStorePurchaseDetailOrderByStorePurchaseOrderId(@RequestParam("orderId") Integer orderId);

    /**
     *
     * @param storeId
     * @param indexPage
     * @return
     *
     * 店铺分页查看 自己店铺的进货详情
     *
     */
    @GetMapping("/getStorePurchaseDetailOrderByStore")
    Result getStorePurchaseDetailOrderByStore(@RequestParam("storeId") Integer storeId,@RequestParam("indexPage") Integer indexPage);

}
